package com.boornet.encrypt.controller;

import com.boornet.encrypt.po.AppInfo;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

/**
 * Created by zcx on 2021/2/23.
 */
@RestController
@RequestMapping("/openApi")
public class HelloController {

    @RequestMapping("/hello")
    public ModelAndView hello(){
        ModelAndView modelAndView = new ModelAndView("index");
        modelAndView.addObject("content", "你好呀！");
        return modelAndView;
    }

    @RequestMapping("/getInfo")
    public AppInfo getInfo(){
        AppInfo appInfo = new AppInfo("1", "12345678954556");
        return appInfo;
    }
}
